package Process;

/**
 * This abstract class represents a generic process
 * and the various fields and methods a process
 * would require.
 * 
 * @author Stephen Amos, Zach Turk, Dickson Kwong
 *
 */

public class DiskProcess extends Process
{
	/**
	 * The data structure for the disk.
	 */
	int disk_data;
	
	public DiskProcess(int the_id, SysCall[] the_requests, int the_counter) 
	{
		super(the_id, the_requests, the_counter);
		
		for (int i = 0; i < Math.floor(requests.length/2); i++)
		{
			requests[(int) Math.floor(Math.random() * requests.length)] = SysCall.DISK_IO;
		}
	}
}
